package dao;
import java.util.List;

import utils.PaintUtils;
public class TestMain {

	/**
	 * 15,16,17琛屽垎鍒娇鐢ㄤ簡涓嶅悓鐨勫疄鐜�
	 * @param args
	 */
	public static void main(String[] args) {
		Student[] students = new Student[3];
		students[0] = new Student("Tom");
		students[1]= new Student("Jerry");
		students[2] = new Student("Sophia");
		
		//StudentDao sdm = new StudentDaoArrayImpl(50);//浣跨敤鏁扮粍瀹炵幇
		//StudentDao sdm = new StudenDaoListImpl();//浣跨敤鍒楄〃瀹炵幇
		StudentDao sdm = new StudentDaoJDBCImpl();
		
		//涓嬮潰鐨勪唬鐮侊紝鏃犻渶鍏冲績鍚庡彴鍒板簳鏄枃浠躲�佹暟鎹簱銆佹暟缁勩�丩ist
		//鍥犱负杩欓噷鏄潰鍚慡tudentDao鎺ュ彛杩涜缂栫▼,鎵�浠ヤ笉绠′笂闈㈡�庝箞淇敼锛屼笅闈唬鐮佸彲浠ヤ笉鐢ㄦ敼鍔�
		System.out.println("===========鍐欏叆瀛︾敓========");
		/*for(Student e:students){
			if (!sdm.writeStudent(e)){
				System.out.println("娣诲姞瀛︾敓澶辫触");
			}else{
				System.out.println("鎻掑叆鎴愬姛锛侊紒");
			}
		}*/
		System.out.println("===========鏄剧ず鎵�鏈夊鐢�========");
		PaintUtils.Painting(sdm.display());
		/*System.out.println("===========鏌ヨ瀛︾敓========");
		Student temp = sdm.readStudent("zhangsan") ;
		if(temp == null){
			System.out.println("鏌ユ棤姝や汉");
		}else{
			System.out.println(temp);
		}*/


	}


	

}
